-- GENERATED SPELL FOR [Savannah Prowler] --


function spell0_3425(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3425', 598, 1)
end

function spell1_3425(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3425', 0, 1)
end

function spell2_3425(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3425', 0, 1)
end

function spell3_3425(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_3425', 0, 1)
end

function spell4_3425(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3425', 9000, 1)
end

function Sorts_3425(pUnit, Event)
local choix_sorts_3425 = math.random(0, 4)
if choix_sorts_3425 == 0 then
pUnit:RegisterEvent('spell0_3425', 1, 1)
end
if choix_sorts_3425 == 1 then
pUnit:RegisterEvent('spell1_3425', 1, 1)
end
if choix_sorts_3425 == 2 then
pUnit:RegisterEvent('spell2_3425', 1, 1)
end
if choix_sorts_3425 == 3 then
pUnit:RegisterEvent('spell3_3425', 1, 1)
end
if choix_sorts_3425 == 4 then
pUnit:RegisterEvent('spell4_3425', 1, 1)
end
end

function mob3425_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3425', math.random(1500, 3000), 1)
end

function mob3425_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3425_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3425_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3425, 1, 'mob3425_Action')
RegisterUnitEvent(3425, 2, 'mob3425_Leave')
RegisterUnitEvent(3425, 3, 'mob3425_Kill')
RegisterUnitEvent(3425, 4, 'mob3425_Die')
